package com.example.demo.enums;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author linxiao
 * @date 2018/7/30 15:35
 */
@ApiModel("拥有权限的枚举值说明")
public enum UserPermissionTypeEnum {
    NO_PERMISSION("没权限", 0),
    ALL_PERMISSION("所有权限", 1),
    PART_PERMISSION("部分权限", 2);

    @ApiModelProperty("中文")
    private String remark;
    @ApiModelProperty("值")
    private int value;

    UserPermissionTypeEnum(String remark, int value) {
        this.remark = remark;
        this.value = value;
    }

    public String getRemark() {
        return remark;
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
